{include file="public/layout"/}
<body data-type="generalComponents">
    <div class="tpl-content-wrapper js-check-wrap">
        <ol class="am-breadcrumb">
            <li><a href="javascript:void(0)" onclick="javascript:parent.openItem('welcome|Index');" class="am-icon-home">首页</a></li>
            <li class="am-active">权限</li>
            <li class="am-active">管理员列表</li>
        </ol>
        <div class="tpl-portlet-components">
            <div class="tpl-block">
                <form method="post">
                    <div class="am-g">
                        <div class="am-u-sm-12 am-u-md-6">&nbsp;</div>
                        <div class="am-u-sm-12 am-u-md-3">
                            <div class="am-input-group am-input-group-sm">
                                <input type="text" class="am-form-field" name="keywords" value="{$keywords}">
                                <span class="am-input-group-btn">
                                    <button class="am-btn  am-btn-default am-btn-success tpl-am-btn-success am-icon-search" type="submit"></button>
                                </span>
                            </div>
                        </div>
                    </div>
                </form>
                <form class="js-ajax-form" method="post">
                    <div class="am-g">
                        <div class="am-u-sm-12 am-u-md-6">
                            <div class="am-btn-toolbar">
                                <div class="am-btn-group am-btn-group-xs">
                                    {$action|actionList|raw}
                                </div>
                            </div>
                        </div>
                    </div>
                    <input type="hidden" name="act" value="del">
                <div class="am-g">
                    <div class="am-u-sm-12">
                        <form class="am-form">
                            <table class="am-table am-table-striped am-table-hover table-main">
                                <thead>
                                <tr>
                                    <th class="table-check"><input type="checkbox" class="tpl-table-fz-check js-check-all" data-direction="x" data-checklist="js-check-x"></th>
                                    <th class="table-id">ID</th>
                                    <th class="table-title">用户名</th>
                                    <th class="table-type">所属角色</th>
                                    <th class="table-author am-hide-sm-only">Email地址</th>
                                    <th class="table-date am-hide-sm-only">加入时间</th>
                                    <th class="table-set">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name="list" id="v"}
                                    <tr>
                                        <td><input type="checkbox" class="js-check"  data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$v.admin_id}"></td>
                                        <td>{$v.admin_id}</td>
                                        <td><a href="#">{$v.user_name}</a></td>
                                        <td>{$v.role}</td>
                                        <td class="am-hide-sm-only">{$v.email}</td>
                                        <td class="am-hide-sm-only">{$v.add_time}</td>
                                        <td>
                                            <div class="am-btn-toolbar">
                                                <div class="am-btn-group am-btn-group-xs">
                                                    <a class="am-btn am-btn-default am-btn-xs am-text-secondary" href="{:url('admin/admin_info', array('admin_id'=>$v['admin_id']))}"><i class="am-icon-pencil-square-o"></i> 编辑</a>
                                                    <a class="am-btn am-btn-default am-btn-xs am-hide-sm-only"><i class="am-icon-copy"></i> 复制</a>
                                                    <a class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only js-ajax-delete" href="{:url('admin/adminHandle', array('ids'=>$v['admin_id'], 'act'=>'del'))}" data-msg="确定要删除吗？"><i class="am-icon-trash-o"></i> 删除</a>
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                {/volist}
                                </tbody>
                            </table>
                            <div class="am-cf">
                                {$page|raw}
                            </div>
                            <hr>

                        </form>
                    </div>

                </div>
                </form>
            </div>
        </div>
    </div>

    <script src="__ADMIN__/js/admin.js"></script>
</body>
</html>